<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        body {
            background: #f5f5f5;
            /* padding: 20px; */
        }

        .container {
            /* max-width: 1200px; */
            width: 100%;
            margin: 0 auto;
            background: white;
            /* border-radius: 8px; */
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .tabs {
            display: flex;
            border-bottom: 1px solid #e5e7eb;
            padding: 0 20px;
        }

        .tab {
            padding: 12px 16px;
            cursor: pointer;
            color: #666;
            position: relative;
            font-size: 20px;
        }

        .tab.active {
            color: #5048e5;
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: #5048e5;
        }

        .filters {
            padding: 16px 20px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            gap: 16px;
            align-items: center;
            font-size: 20px;
        }

        .filter-group {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .filter-btn {
            padding: 4px 12px;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            font-size: 20px;
            cursor: pointer;
            background: white;
            margin-right: 10px;
        }

        .filter-btn.active {
            background: #5048e5;
            color: white;
            border-color: #5048e5;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th {
            text-align: left;
            padding: 12px 20px;
            font-weight: normal;
            color: #999;
            font-size: 13px;
            border-bottom: 1px solid #e5e7eb;
        }

        .table td {
            padding: 12px 20px;
            border-bottom: 1px solid #f5f5f5;
            font-size: 20px;
        }

        .rank {
            color: #666;
            font-size: 20px;
            width: 50px;
        }

        .content {
            display: flex;
            align-items: center;
            gap: 12px;
            max-width: 600px;
        }

        .thumbnail {
            width: 40px;
            height: 40px;
            border-radius: 4px;
            object-fit: cover;
            background: #f0f0f0;
            flex-shrink: 0;
        }

        .creator {
            color: #666;
            font-size: 20px;
        }

        .title {
            color: #333;
            flex: 1;
            font-size: 20px;
            line-height: 1.5;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .metrics {
            color: #666;
            font-size: 13px;
        }

        .update-time {
            padding: 8px 20px;
            color: #999;
            font-size: 20px;
            border-bottom: 1px solid #e5e7eb;
        }

        .pagination {
            padding: 16px;
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            align-items: center;
        }

        .page-btn {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e5e7eb;
            border-radius: 4px;
            cursor: pointer;
            margin-right: 10px;
        }

        .page-btn.active {
            background: #5048e5;
            color: white;
            border-color: #5048e5;
        }

        .table td {
            padding: 12px 16px;
            font-size: 20px;
            border-bottom: 1px solid #f0f0f0;
            vertical-align: middle;
        }

        .table th {
            text-align: left;
            padding: 12px 16px;
            font-size: 20px;
            color: #666;
            border-bottom: 1px solid #e5e7eb;
            font-weight: normal;
            background: #f9fafb;
            white-space: nowrap;
        }

        .streamer {
            color: #333;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .streamer-icon {
            width: 16px;
            height: 16px;
            display: inline-block;
        }

        .table tr:hover {
            background: #f9fafb;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="tabs">
            <div class="tab">抖音实时上升热榜</div>
            <div class="tab active">抖音视频榜单</div>
            <div class="tab">抖音热门视频</div>
            <div class="tab">抖音直播人气榜</div>
            <div class="tab">抖音音乐热搜榜</div>
        </div>

        <div class="update-time">
            数据更新于2025-02-21 21:34:12
        </div>

        <div class="filters">
            <div class="filter-group">
                <span>时间：</span>
                <button class="filter-btn">1小时内</button>
                <button class="filter-btn active">1天内</button>
                <button class="filter-btn">3天内</button>
                <button class="filter-btn">7天内</button>
            </div>
            <div class="filter-group">
                <span>类型：</span>
                <button class="filter-btn active">视频总榜</button>
                <button class="filter-btn">低粉爆款</button>
                <button class="filter-btn">高完播率</button>
                <button class="filter-btn">高涨粉率</button>
                <button class="filter-btn">高点赞率</button>
            </div>
        </div>

        <table class="table">
            <thead>
                <tr>
                    <th>排名</th>
                    <th>视频</th>
                    <th>时长</th>
                    <th>发布时间</th>
                    <th>达人</th>
                    <th>播放量</th>
                    <th>点赞数</th>
                    <th>转发</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="rank">1</td>
                    <td class="content">
                        <img src="https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-SCMl9AtBUOwu39S0RPUFFOv63DGE5q.png" alt="" class="thumbnail">
                        <div class="title">back to black❤️</div>
                    </td>
                    <td>12秒</td>
                    <td>2025-02-20 18:04:03</td>
                    <td>蔡徐坤</td>
                    <td class="metrics">3113.8w</td>
                    <td class="metrics">90.4w</td>
                    <td class="metrics">130.7w</td>
                </tr>
                <!-- More rows would go here -->
            </tbody>
        </table>

        <div class="pagination">
            <div class="page-btn">←</div>
            <div class="page-btn active">1</div>
            <div class="page-btn">2</div>
            <div class="page-btn">3</div>
            <div class="page-btn">→</div>
        </div>
    </div>
    <script>
        // 获取所有tab元素
        const tabs = document.querySelectorAll('.tab');
        
        // 为每个tab添加点击事件
        tabs.forEach(tab => {
            tab.addEventListener('click', () => {
                // 移除所有tab的active类
                tabs.forEach(t => t.classList.remove('active'));
                // 给当前点击的tab添加active类
                tab.classList.add('active');
                
                // 这里可以根据不同的tab加载不同的数据
                const tabName = tab.textContent;
                updateContent(tabName);
            });
        });

        // 更新内容的函数
        function updateContent(tabName) {
            // 模拟数据加载
            const loadingTime = document.querySelector('.update-time');
            loadingTime.textContent = '数据加载中...';

            // 获取表格内容区域
            const tableBody = document.querySelector('.table tbody');

            // 这里可以添加实际的数据请求逻辑
            setTimeout(() => {
                const now = new Date();
                const timeString = now.toLocaleString('zh-CN', {
                    year: 'numeric',
                    month: '2-digit',
                    day: '2-digit',
                    hour: '2-digit',
                    minute: '2-digit',
                    second: '2-digit'
                });
                loadingTime.textContent = `数据更新于${timeString}`;

                // 根据不同的tab名称加载不同的数据
                switch(tabName) {
                    case '抖音实时上升热榜':
                        // 更新表头
                        document.querySelector('.table thead').innerHTML = `
                            <tr>
                                <th>排名</th>
                                <th>热搜词</th>
                                <th>播放量</th>
                                <th>热度指数</th>
                            </tr>
                        `;
                        
                        // 更新表格内容
                        tableBody.innerHTML = `
                            <tr>
                                <td class="rank">1</td>
                                <td>
                                    <div class="content">
                                        <img src="https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-ku7dZVTZ0GBkveb0Y2jt776IoSeOLH.png" alt="" class="thumbnail">
                                        <div class="title">湖北省委原书记蒋超良被查</div>
                                    </div>
                                </td>
                                <td class="metrics">6328.8w</td>
                                <td class="metrics">1164.5w</td>
                            </tr>
                            <tr>
                                <td class="rank">2</td>
                                <td>
                                    <div class="content">
                                        <img src="https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-ku7dZVTZ0GBkveb0Y2jt776IoSeOLH.png" alt="" class="thumbnail">
                                        <div class="title">欧冠抽签仪式</div>
                                    </div>
                                </td>
                                <td class="metrics">6143.8w</td>
                                <td class="metrics">1155.6w</td>
                            </tr>
                            <tr>
                                <td class="rank">3</td>
                                <td>
                                    <div class="content">
                                        <img src="https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-ku7dZVTZ0GBkveb0Y2jt776IoSeOLH.png" alt="" class="thumbnail">
                                        <div class="title">我国科学家发现细菌免疫新机制</div>
                                    </div>
                                </td>
                                <td class="metrics">6370.1w</td>
                                <td class="metrics">1148.7w</td>
                            </tr>
                            <tr>
                                <td class="rank">4</td>
                                <td>
                                    <div class="content">
                                        <img src="https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-ku7dZVTZ0GBkveb0Y2jt776IoSeOLH.png" alt="" class="thumbnail">
                                        <div class="title">郑宇伯上演大心脏送终</div>
                                    </div>
                                </td>
                                <td class="metrics">6288.5w</td>
                                <td class="metrics">1127.5w</td>
                            </tr>
                            <tr>
                                <td class="rank">5</td>
                                <td>
                                    <div class="content">
                                        <img src="https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-ku7dZVTZ0GBkveb0Y2jt776IoSeOLH.png" alt="" class="thumbnail">
                                        <div class="title">何立峰与美财长举行视频通话</div>
                                    </div>
                                </td>
                                <td class="metrics">5989.3w</td>
                                <td class="metrics">1069.0w</td>
                            </tr>
                        `;

                        // 隐藏筛选区域，因为实时热榜不需要筛选
                        document.querySelector('.filters').style.display = 'none';
                        break;
                    case '抖音视频榜单':
                        // 显示筛选区域
                        document.querySelector('.filters').style.display = 'flex';
                        // 恢复原来的表头和内容
                        document.querySelector('.table thead').innerHTML = `
                            <tr>
                                <th>排名</th>
                                <th>视频</th>
                                <th>时长</th>
                                <th>发布时间</th>
                                <th>达人</th>
                                <th>播放量</th>
                                <th>点赞数</th>
                                <th>转发</th>
                            </tr>
                        `;
                        // 恢复原来的示例数据
                        tableBody.innerHTML = `
                            <tr>
                                <td class="rank">1</td>
                                <td class="content">
                                    <img src="https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-SCMl9AtBUOwu39S0RPUFFOv63DGE5q.png" alt="" class="thumbnail">
                                    <div class="title">back to black❤️</div>
                                </td>
                                <td>12秒</td>
                                <td>2025-02-20 18:04:03</td>
                                <td>蔡徐坤</td>
                                <td class="metrics">3113.8w</td>
                                <td class="metrics">90.4w</td>
                                <td class="metrics">130.7w</td>
                            </tr>
                        `;
                        break;
                    case '抖音热门视频':
                        // 更新表头
                        document.querySelector('.table thead').innerHTML = `
                            <tr>
                                <th>排名</th>
                                <th>视频</th>
                                <th>达人</th>
                                <th>播放量</th>
                                <th>点赞数</th>
                                <th>热度指数</th>
                                <th>评论数</th>
                            </tr>
                        `;
                        
                        // 更新表格内容
                        tableBody.innerHTML = `
                            <tr>
                                <td class="rank">1</td>
                                <td>
                                    <div class="content">
                                        <div class="thumbnail"></div>
                                        <div class="title">眼睛王纪出没，消防员紧急处置。（来源：中国消防）</div>
                                    </div>
                                </td>
                                <td class="creator">新华社</td>
                                <td class="metrics">10434.9w</td>
                                <td class="metrics">60.2w</td>
                                <td class="metrics">6597.6w</td>
                                <td class="metrics">11.1w</td>
                            </tr>
                            <tr>
                                <td class="rank">2</td>
                                <td>
                                    <div class="content">
                                        <div class="thumbnail"></div>
                                        <div class="title">食物界有自己的温柔土#阳春见日常 #动物的迷惑行为</div>
                                    </div>
                                </td>
                                <td class="creator">毛桃桃大眼怪</td>
                                <td class="metrics">7824.5w</td>
                                <td class="metrics">187.1w</td>
                                <td class="metrics">5634.8w</td>
                                <td class="metrics">4.6w</td>
                            </tr>
                            <tr>
                                <td class="rank">3</td>
                                <td>
                                    <div class="content">
                                        <div class="thumbnail"></div>
                                        <div class="title">肝东来一件融级服进货价498.7售价499，工作人员回应，去年处理的几件衣服"双喜3毛钱：只是个别"#肝东来 #河南dou知道</div>
                                    </div>
                                </td>
                                <td class="creator">大象新闻</td>
                                <td class="metrics">4783.9w</td>
                                <td class="metrics">11.3w</td>
                                <td class="metrics">3245.6w</td>
                                <td class="metrics">1.8w</td>
                            </tr>
                        `;

                        // 显示筛选区域
                        document.querySelector('.filters').style.display = 'none';
                        break;
                    case '抖音直播人气榜':
                        // 更新表头
                        document.querySelector('.table thead').innerHTML = `
                            <tr>
                                <th>排名</th>
                                <th>直播</th>
                                <th>达人</th>
                                <th>人气</th>
                                <th>在线人数</th>
                            </tr>
                        `;
                        
                        // 更新表格内容
                        tableBody.innerHTML = `
                            <tr>
                                <td class="rank">1</td>
                                <td></td>
                                <td class="streamer">旭旭宝宝</td>
                                <td class="metrics">100万+</td>
                                <td class="metrics">0</td>
                            </tr>
                            <tr>
                                <td class="rank">2</td>
                                <td></td>
                                <td class="streamer">
                                    <span>小白牙</span>
                                    <img src="https://hebbkx1anhila5yf.public.blob.vercel-storage.com/image-xDbLWURA6EN43Eux8UF1krS12MlV59.png" alt="" class="streamer-icon">
                                </td>
                                <td class="metrics">100万+</td>
                                <td class="metrics">0</td>
                            </tr>
                            <tr>
                                <td class="rank">3</td>
                                <td></td>
                                <td class="streamer">农村玄哥(温馨星生)922</td>
                                <td class="metrics">100万+</td>
                                <td class="metrics">0</td>
                            </tr>
                            <tr>
                                <td class="rank">4</td>
                                <td></td>
                                <td class="streamer">白泽（三角洲行动）</td>
                                <td class="metrics">100万+</td>
                                <td class="metrics">0</td>
                            </tr>
                            <tr>
                                <td class="rank">5</td>
                                <td></td>
                                <td class="streamer">老峰星</td>
                                <td class="metrics">100万+</td>
                                <td class="metrics">0</td>
                            </tr>
                        `;

                        // 隐藏筛选区域
                        document.querySelector('.filters').style.display = 'none';
                        break;
                    case '抖音音乐热搜榜':
                        // 更新表头
                        document.querySelector('.table thead').innerHTML = `
                            <tr>
                                <th>排名</th>
                                <th>歌曲</th>
                                <th>使用量</th>
                                <th>时长</th>
                                <th>作者</th>
                            </tr>
                        `;
                        
                        // 更新表格内容
                        tableBody.innerHTML = `
                            <tr>
                                <td class="rank">1</td>
                                <td>
                                    <div class="content">
                                        <img src="path/to/cover1.jpg" alt="" class="thumbnail">
                                        <div class="title">没有如果（热恋版）</div>
                                    </div>
                                </td>
                                <td class="metrics">219w</td>
                                <td class="metrics">25秒</td>
                                <td class="creator">大家庭Sophie、迪动</td>
                            </tr>
                            <tr>
                                <td class="rank">2</td>
                                <td>
                                    <div class="content">
                                        <img src="path/to/cover2.jpg" alt="" class="thumbnail">
                                        <div class="title">对视（新编版）</div>
                                    </div>
                                </td>
                                <td class="metrics">4w</td>
                                <td class="metrics">21秒</td>
                                <td class="creator">Sasablue</td>
                            </tr>
                            <tr>
                                <td class="rank">3</td>
                                <td>
                                    <div class="content">
                                        <img src="path/to/cover3.jpg" alt="" class="thumbnail">
                                        <div class="title">Love in the Dark（Phonk House）</div>
                                    </div>
                                </td>
                                <td class="metrics">10w</td>
                                <td class="metrics">20秒</td>
                                <td class="creator">7ovey/uumi</td>
                            </tr>
                            <tr>
                                <td class="rank">4</td>
                                <td>
                                    <div class="content">
                                        <img src="path/to/cover4.jpg" alt="" class="thumbnail">
                                        <div class="title">完美世界_女版_主歌</div>
                                    </div>
                                </td>
                                <td class="metrics">2w</td>
                                <td class="metrics">20秒</td>
                                <td class="creator">田园</td>
                            </tr>
                            <tr>
                                <td class="rank">5</td>
                                <td>
                                    <div class="content">
                                        <img src="path/to/cover5.jpg" alt="" class="thumbnail">
                                        <div class="title">红蔷薇白玫瑰（剧院）</div>
                                    </div>
                                </td>
                                <td class="metrics">60w</td>
                                <td class="metrics">38秒</td>
                                <td class="creator">G.E.M.邓紫棋</td>
                            </tr>
                        `;

                        // 隐藏筛选区域
                        document.querySelector('.filters').style.display = 'none';
                        break;
                }
            }, 500); // 模拟加载延迟
        }

        // 为筛选按钮添加点击事件
        const filterBtns = document.querySelectorAll('.filter-btn');
        filterBtns.forEach(btn => {
            btn.addEventListener('click', () => {
                // 找到当前按钮所在的筛选组
                const group = btn.closest('.filter-group');
                // 移除该组中所有按钮的active类
                group.querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active'));
                // 给当前点击的按钮添加active类
                btn.classList.add('active');
                
                // 这里可以添加筛选逻辑
                const activeTab = document.querySelector('.tab.active').textContent;
                const filterType = group.querySelector('span').textContent;
                const filterValue = btn.textContent;
                console.log(`应用筛选：${activeTab} - ${filterType} ${filterValue}`);
                
                // 更新内容
                updateContent(activeTab);
            });
        });
    </script>
</body>
</html> 